#ifndef CHARACTERSKILLSFORM_H
#define CHARACTERSKILLSFORM_H


#include "skilltablemodel.h"


#include <campaign.h>
#include <dtwentymodel.h>


#include <QWidget>
#include <QSortFilterProxyModel>


namespace Ui {
class CharacterSkillsForm;
}


class CharacterSkillsForm : public QWidget
{
    Q_OBJECT
    
public:

    explicit CharacterSkillsForm(QWidget *parent = 0);
    ~CharacterSkillsForm();

    void setSourceModel(DTwentyModel* sourceModel);
    void setCampaign(Campaign* campaign);

    void addSkill();
    void removeSkill();

    void refresh();

protected:

    virtual void showEvent(QShowEvent *e);


private:

    Ui::CharacterSkillsForm *ui;

    SkillTableModel* m_skillsModel;
    QSortFilterProxyModel* m_sortFilter;


};

#endif // CHARACTERSKILLSFORM_H
